//
//  SecondViewController.m
//  map
//
//  Created by lsy on 15/11/17.
//  Copyright © 2015年 刘世玉. All rights reserved.
//

#import "SecondViewController.h"
#import <Masonry.h>
@interface SecondViewController ()

@end

@implementation SecondViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    UIView *view = [UIView new];
    view.backgroundColor = [UIColor blackColor];
    [self.view addSubview:view];
    
    
    [view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self.view);
        make.size.mas_equalTo(CGSizeMake(300, 300));
    }];
    
    // make里面只增加新的约束，但是不能出现两条针对同一对象的约束，不然会crash
    // update方法会更新约束，以确保不会出现两条约束作用于同一对象
    // remake方法会清除之前所有的约束，并重新创建一次
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
